<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('商户模版费率')" />
    <th:block th:include="include :: datetimepicker-css" />
    </head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-modelDetailsRate-add">
            <input name="modelNo" type="hidden" th:value="${mv.modelNo}">
            <table class="table table-bordered table-striped table-top" style="text-align: center">
                <thead>
                <tr>
                    <th style="text-align:center;">交易类型</th>
                    <th style="text-align:center;">交易性质</th>
                    <th style="text-align:center;">卡类型</th>
                    <th style="text-align:center;">结算类型</th>
                    <th style="text-align:center;">费率</th>
                    <th style="text-align:center;">封顶成本(元/笔)</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td  rowspan="2">刷卡</td>
                    <td  rowspan="2">标准类</td>
                    <td  rowspan="1">借记卡</td>
                    <td  >D0</td>
                    <td  ><input type="text" required class="form-control" min='0' th:value="${mv.yinhangkaJiejikaD0}" name="yinhangkaJiejikaD0"   /> </td>
                    <td  ><input type="text" required class="form-control" min='0' th:value="${mv.yinhangkaJiejikaD0Fd}" name="yinhangkaJiejikaD0Fd"   /> </td>
                </tr>
                <tr>
                    <td  rowspan="1">贷记卡</td>
                    <td >D0</td>
                    <td ><input type="text" required class="form-control" min='0' th:value="${mv.yinhangkaDaijikaD0}" name="yinhangkaDaijikaD0"  /> </td>
                </tr>
                <tr>
                    <td  rowspan="2">云闪付</td>
                    <td  rowspan="2">标准类</td>
                    <td  rowspan="1">借记卡</td>
                    <td  >D0</td>
                    <td  ><input type="text" required class="form-control" min='0' th:value="${mv.yunshanFuJiejikaD0}" name="yunshanFuJiejikaD0"   /> </td>
                    <td  ></td>
                </tr>
                <tr>
                    <td  rowspan="1">贷记卡</td>
                    <td >D0</td>
                    <td ><input type="text" required class="form-control" min='0' th:value="${mv.yunshanFuDaijikaD0}" name="yunshanFuDaijikaD0"  /> </td>
                    <td ></td>
                </tr>
                <tr>
                    <td  rowspan="2">银联二维码</td>
                    <td  rowspan="2">标准类</td>
                    <td  rowspan="1">借记卡</td>
                    <td  >D0</td>
                    <td  ><input type="text" required class="form-control" min='0' th:value="${mv.qrJiejikaD0}" name="qrJiejikaD0"   /> </td>
                    <td  ><input type="text" required class="form-control" min='0' th:value="${mv.qrJiejikaD0Fd}" name="qrJiejikaD0Fd"   /> </td>
                </tr>
                <tr>
                    <td  rowspan="1">贷记卡</td>
                    <td >D0</td>
                    <td ><input type="text" required class="form-control" min='0' th:value="${mv.qrDaijikaD0}" name="qrDaijikaD0"  /> </td>
                    <td ></td>
                </tr>
                <tr>
                    <td  rowspan="1" colspan="2">微信</td>
                    <td  rowspan="1">贷记卡</td>
                    <td  >D0</td>
                    <td  ><input type="text" required class="form-control" min='0' th:value="${mv.weiXinJiejikaD0}" name="weiXinJiejikaD0"  /> </td>
                    <td  ></td>
                </tr>


                <tr>
                    <td  rowspan="1" colspan="2">支付宝</td>
                    <td  rowspan="1">贷记卡</td>
                    <td >D0</td>
                    <td ><input type="text" required class="form-control" min='0' th:value="${mv.zhifuBaoJiejikaD0}" name="zhifuBaoJiejikaD0"  /> </td>
                    <td ></td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "merchant/merchantModelDetail"
        $("#form-modelDetailsRate-add").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        //附加费监测
        $(".fj").on('input',function () {
            $(".fj").val(this.value)
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/saveSetModelDetailsRate", $('#form-modelDetailsRate-add').serialize());
            }
        }
    </script>
</body>
</html>